function factorialize(num) {
  if(num == 1 || num == 0){
    return 1
  }
  //递归
  return num * factorialize(num-1)
}
factorialize(5);
